package com.jxj.controller;

import com.jxj.entity.Resp;
import com.jxj.service.RecruitService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Cambria
 * @creat 2021/8/14 23:07
 */
@Slf4j
@RestController
public class RecruitController {

    @Autowired
    RecruitService recruitService;

    @GetMapping({"/organization/getrecruitmsgbyid"})
    Resp getRecruitMsgById(String rId) {
        return new Resp(HttpStatus.OK , recruitService.getRecruitMsgByRid(rId));
    }


}
